package com.lancer.volatileTest;

public class MyData {

    int number1 = 0;
    volatile int number2 = 0;

    public void add(){
        this.number1 = 11;
        this.number2 = 22;
    }

    String s1 = "空";
    String s2 = "空";

    public void addStr(){
        this.s1 = "11111";
        this.s2 = "22222";
    }

}
